package com.ruoyi.business.mapper.koc;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.business.domain.dto.admin.koc.TbUserKocPointsLogPageQueryDTO;
import com.ruoyi.business.domain.koc.TbUserKocPointsLog;
import com.ruoyi.business.domain.vo.TbUserKocPointsLogPageVO;
import com.ruoyi.business.domain.vo.TbUserKocPointsLogStatisticVO;
import com.ruoyi.business.domain.vo.TbUserKocPointsRankVO;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;

/**
 * 用户获取积分流水Mapper接口
 *
 * @author ruoyi
 * @date 2025-09-11
 */
public interface TbUserKocPointsLogMapper extends BaseMapperPlus<TbUserKocPointsLogMapper, TbUserKocPointsLog, TbUserKocPointsLog> {


    IPage<TbUserKocPointsLogPageVO> selectPageList(@Param("page") Page<TbUserKocPointsLogPageVO> page, @Param("queryDTO") TbUserKocPointsLogPageQueryDTO tbUserKocPointsLogPageQueryDTO);


    TbUserKocPointsRankVO userPointsRank(@Param("kocDate") String kocDate);

    IPage<TbUserKocPointsLogStatisticVO> queryMyPointLogsStatisticPage(@Param("page") Page<TbUserKocPointsLogStatisticVO> page, @Param("userId") Long userId, @Param("kocDate") String kocDate);
}
